package org.grc.app.z_project.z_framework;

import org.grc.app.z_project.z_framework.helper.AopHelper;
import org.grc.app.z_project.z_framework.helper.BeanHelper;
import org.grc.app.z_project.z_framework.helper.ClassHelper;
import org.grc.app.z_project.z_framework.helper.ControllerHelper;
import org.grc.app.z_project.z_framework.helper.IocHelper;
import org.grc.app.z_project.z_framework.util.ClassUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 加载相应的 Helper类
 * 
 * @author grc
 * @since 1.0-SNAPSHOT
 */
public final class HelperLoader {

	private static final Logger LOGGER = LoggerFactory.getLogger(HelperLoader.class);
	
	public static void init () {
		Class<?>[] classList = {
				ClassHelper.class,
				BeanHelper.class,
				AopHelper.class,
				IocHelper.class,
				ControllerHelper.class
		};
		for (Class<?> clazz : classList) {
			ClassUtil.loadClass(clazz.getName());
			LOGGER.info(clazz.getSimpleName() + " load successfully");
		}
	}
}
